package com.api.devices.service.impl;

import com.api.devices.domain.query.ElementQuery;
import com.api.devices.domain.vo.ElementVo;
import com.api.devices.mapper.ElementMapper;
import com.api.devices.service.IElementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ELementServiceImpl implements IElementService {
    @Autowired
    ElementMapper elementMapper;

    @Override
    public ElementVo create(ElementVo vo) {
        elementMapper.create(vo);
        return vo;
    }

    @Override
    public void modify(ElementVo vo) {
        elementMapper.modify(vo);
    }

    @Override
    public void delete(ElementVo vo) {
        elementMapper.delete(vo);
    }

    @Override
    public ElementQuery item(ElementVo vo) {
        return elementMapper.item(vo);
    }

    @Override
    public List<ElementQuery> list(ElementVo vo) {
        return elementMapper.list(vo);
    }
}
